import math

class Cuadratica:
	def __init__(self,a,b,c):
		self.__a=a
		self.__b=b
		self.__c=c
		self.__x1=None
		self.__x2=None
		
	def __setX1(self,x1):
		self.__x1=x1
	def __setX2(self,x2):
		self.__x2=x2

	def bascaraABC(self):
		x1= (-self.__b+math.sqrt(self.__b**2-4*self.__a*self.__c))/(2*self.__a)
		x2= (-self.__b-math.sqrt(self.__b**2-4*self.__a*self.__c))/(2*self.__a)
		self.__setX1(x1)
		self.__setX2(x2)
		
	def getX1(self):
		return self.__x1
	
	def getX2(self):
		return self.__x2
			
c=Cuadratica(5,4,-1)
c.bascaraABC()
print "La raiz 1 es: ",c.getX1()
print "La raiz 2 es: ",c.getX2()
			
			

